package edu.yuhf.service;

import java.util.List;

import edu.yuhf.dao.NativeplaceJdbcDaoImpl;
import edu.yuhf.dao.iface.NativeplaceDao;
import edu.yuhf.domain.Nativeplace;
import edu.yuhf.service.iface.NativeplaceService;

public class NativeplaceServiceImpl implements NativeplaceService {
	private NativeplaceDao nativeplaceDao=new NativeplaceJdbcDaoImpl();

	@Override
	public List<Nativeplace> getProvinces() {
		
		return nativeplaceDao.getLevel1();
	}

	@Override
	public List<Nativeplace> getCities(String code) {
		
		return nativeplaceDao.getLevel2(code);
	}

}
